import request from '@/utils/request'

// 查询age列表
export function listAge(query) {
  return request({
    url: '/system/age/list',
    method: 'get',
    params: query
  })
}

// 查询age详细
export function getAge(id) {
  return request({
    url: '/system/age/' + id,
    method: 'get'
  })
}

// 新增age
export function addAge(data) {
  return request({
    url: '/system/age',
    method: 'post',
    data: data
  })
}

// 修改age
export function updateAge(data) {
  return request({
    url: '/system/age',
    method: 'put',
    data: data
  })
}

// 删除age
export function delAge(id) {
  return request({
    url: '/system/age/' + id,
    method: 'delete'
  })
}
